.student-manage-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;

  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    h1 {
      margin: 0;
      font-size: 24px;
    }
  }

  .error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
  }

  .class-selector {
    margin-bottom: 20px;
    
    label {
      margin-right: 10px;
      font-weight: bold;
    }
    
    select {
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      min-width: 200px;
    }
  }

  .student-list-wrapper {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    .loading {
      padding: 20px;
      text-align: center;
    }
    
    .student-table {
      width: 100%;
      border-collapse: collapse;
      
      th, td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #eee;
      }
      
      th {
        background-color: #f5f5f5;
        font-weight: bold;
      }
      
      tr:hover {
        background-color: #f9f9f9;
      }

      .action-cell {
        white-space: nowrap;
        
        button {
          margin-right: 5px;
          
          &:last-child {
            margin-right: 0;
          }
        }
      }
    }
    
    .empty-tip {
      padding: 30px;
      text-align: center;
      color: #666;

      button {
        margin-top: 15px;
      }
    }
  }

  // 模态框样式
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    
    .modal-content {
      background-color: #fff;
      border-radius: 4px;
      width: 100%;
      max-width: 500px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
      
      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        
        h2 {
          margin: 0;
          font-size: 20px;
        }
        
        .close-btn {
          background: none;
          border: none;
          font-size: 24px;
          cursor: pointer;
          color: #666;
          
          &:hover {
            color: #333;
          }
        }
      }
      
      form {
        padding: 20px;
        
        .form-item {
          margin-bottom: 15px;
          
          label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
          }
          
          input, select, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
            
            &:focus {
              outline: none;
              border-color: #007bff;
            }
          }
          
          textarea {
            height: 100px;
            resize: vertical;
          }
        }
        
        .form-actions {
          margin-top: 20px;
          display: flex;
          justify-content: flex-end;
          
          button {
            margin-left: 10px;
          }
        }
      }
    }
  }
  
  // 通用按钮样式
  .btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    
    &.btn-primary {
      background-color: #007bff;
      color: white;
      
      &:hover {
        background-color: #0069d9;
      }
      
      &:disabled {
        background-color: #b3d7ff;
        cursor: not-allowed;
      }
    }
    
    &.btn-default {
      background-color: #f2f2f2;
      color: #333;
      
      &:hover {
        background-color: #e2e2e2;
      }
    }
    
    &.btn-danger {
      background-color: #dc3545;
      color: white;
      
      &:hover {
        background-color: #c82333;
      }
    }
    
    &.btn-sm {
      padding: 5px 10px;
      font-size: 12px;
    }
  }
} 